﻿using KZ.Express.Resource;

namespace KZ.Express.ENT
{
    public class PriceListDetailENT : EntityBase
    {
        public PriceListDetailENT()
        {
        }

        public PriceListDetailENT(PriceListDetailENT priceListDetail)
        {
            this.PriceListID = priceListDetail.PriceListID;
            this.Type = priceListDetail.Type;
            this.Zone = priceListDetail.Zone;
            this.FromWeight = priceListDetail.FromWeight;
            this.ToWeight = priceListDetail.ToWeight;
            this.ListPrice = priceListDetail.ListPrice;
        }

        [Output]
        public int PriceListDetailID { get; set; }

        public int? PriceListID { get; set; }

        public string Type { get; set; }

        public string Zone { get; set; }

        public decimal? FromWeight { get; set; }

        public decimal? ToWeight { get; set; }

        public decimal? ListPrice { get; set; }

        [NotInsertUpdate]
        public override string Table { get { return "PriceListDetails"; } }

        /// <summary>
        /// proc_PriceListDetail_Insert
        /// </summary>
        [NotInsertUpdate]
        public override string InsertProcedure { get { return "proc_PriceListDetail_Insert"; } }

        /// <summary>
        /// proc_PriceListDetail_Select
        /// </summary>
        [NotInsertUpdate]
        public override string SelectProcedure { get { return "proc_PriceListDetail_Select"; } }
    }
}